#include <iostream>
#include <string.h>
using std::cout;
using std::endl;

class Computer
{
public:
    //赋值运算符函数
    Computer & operator=(const Computer &rhs){
        if (this!= &rhs){
            delete [] _brand;
            _brand = new char[strlen(rhs._brand)+1]();
            strcpy(_brand,rhs._brand);
            _price = rhs._price;
        }
    }

    
private:
    char* _brand;
    int _price;
};

void test0(){

}

int main(int argc, char * argv[])
{
    test0();
    return 0;
}


